import { IsString, IsEnum, IsInt, IsEmail, IsOptional, Length, Min, Max } from 'class-validator';

export class LoginUserDto {
    @IsString()
    @Length(6, 400)
    password: string;

    // 电子邮箱
    @IsEmail()
    @Length(1, 100)
    email: string;
}
